<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:dailymarket="http://dailymarket.com/facelets">
	<head><title>IGNORED</title></head>
    <body>
		<ui:composition template="templates/layout.xhtml">
			<ui:define name="windowTitle">Daily Market | Partners</ui:define>
			<ui:define name="content">
				<div id="content" class="graphic_bg">
					<h:form style="text-align: center; width: 920px;">
						<h:link outcome="login" styleClass="image-button large">Partner Login</h:link>
						<h:commandLink action="#{authenticationBean.doSignupCompany}" styleClass="image-button large">Become a Partner</h:commandLink>
						<div style="display: block; text-align: center; margin-top: 10px; width: 920px;">
							<h:dataTable id="partnerTable" rows="10" value="#{partnerCompanyProfileBean.partnerListModel}" var="curPartner" style="border: solid 4px #FFFFFF; border-collapse: collapse; margin: 5px auto;" rowClasses="odd-row, even-row" headerClass="header-row" columnClasses="id-col,data-col">
								<h:column>
									<f:facet name="header">Company Name</f:facet>
									<a href="partner.do?partner=#{curPartner.companyId}" class="table-link"><h:outputText value="#{curPartner.companyName}" /></a>
								</h:column>
								<h:column>
									<f:facet name="header">Number of Deals</f:facet>
									<h:outputText value="#{curPartner.numDeals}" />
								</h:column>
							</h:dataTable>
						</div>
						<div class="page-nav">
							<dailymarket:paginator dataTableId="partnerTable" showPages="10" selectedStyleClass="page-nav-link-sel" styleClass="page-nav-link" />
						</div>
					</h:form>
				</div>
			</ui:define>
		</ui:composition>
	</body>
</html>